#!/bin/bash - 
#===============================================================================
#
#          FILE:  ex11-10.sh
# 
#         USAGE:  ./ex11-10.sh 
# 
#   DESCRIPTION:  Lists symbolic link in a directory
# 
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: bucunzai (), freecityer@gmail.com
#       COMPANY: FreeCity
#       CREATED: 2011年02月09日 15时59分10秒 CST
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error

directory=${1-`pwd`}
# defaults to current working directory if not specified

echo "symbolic links in directory \"$directory\""

for file in "$( find $directory -type l )"
do
    echo "$file"
done | sort

exit 0
